import 'package:get/get.dart';
import 'package:share_fit/app/models/home/city_model.dart';
import 'package:share_fit/app/models/home/province_model.dart';

class WeatherLocationSwitchState {
  var currentIndex = 0.obs;

  List<ProvinceModel> countryCodeData = <ProvinceModel>[].obs;
  List<CityModel> filterData = <CityModel>[].obs;
  List<CityModel> cityList = <CityModel>[].obs;
  List<String> letters =
      <String>["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"].obs;

  WeatherLocationSwitchState() {
    ///Initialize variables

    // countryCodeData.add(Province(code: '110000', name: '北京市'));
    // countryCodeData.add(Province(code: '120000', name: '天津市'));
    // countryCodeData.add(Province(code: '310000', name: '上海市'));
    // countryCodeData.add(Province(code: '500000', name: '重庆市'));
    // countryCodeData.add(Province(code: '130000', name: '河北省'));
    // countryCodeData.add(Province(code: '140000', name: '山西省'));
    // countryCodeData.add(Province(code: '150000', name: '内蒙古自治区'));
    // countryCodeData.add(Province(code: '210000', name: '辽宁省'));
    // countryCodeData.add(Province(code: '220000', name: '吉林省'));
    // countryCodeData.add(Province(code: '230000', name: '黑龙江省'));
    // countryCodeData.add(Province(code: '320000', name: '江苏省'));
    // countryCodeData.add(Province(code: '330000', name: '浙江省'));
    // countryCodeData.add(Province(code: '340000', name: '安徽省'));
    // countryCodeData.add(Province(code: '350000', name: '福建省'));
    // countryCodeData.add(Province(code: '360000', name: '江西省'));
    // countryCodeData.add(Province(code: '370000', name: '山东省'));
    // countryCodeData.add(Province(code: '410000', name: '河南省'));
    // countryCodeData.add(Province(code: '420000', name: '湖北省'));
    // countryCodeData.add(Province(code: '430000', name: '湖南省'));
    // countryCodeData.add(Province(code: '440000', name: '广东省'));
    // countryCodeData.add(Province(code: '450000', name: '广西壮族自治区'));
    // countryCodeData.add(Province(code: '460000', name: '海南省'));
    // countryCodeData.add(Province(code: '510000', name: '四川省'));
    // countryCodeData.add(Province(code: '520000', name: '贵州省'));
    // countryCodeData.add(Province(code: '530000', name: '云南省'));
    // countryCodeData.add(Province(code: '540000', name: '西藏自治区'));
    // countryCodeData.add(Province(code: '610000', name: '陕西省'));
    // countryCodeData.add(Province(code: '620000', name: '甘肃省'));
    // countryCodeData.add(Province(code: '630000', name: '青海省'));
    // countryCodeData.add(Province(code: '640000', name: '宁夏回族自治区'));
    // countryCodeData.add(Province(code: '650000', name: '新疆维吾尔自治区'));
    // countryCodeData.add(Province(code: '710000', name: '台湾省'));
    // countryCodeData.add(Province(code: '810000', name: '香港特别行政区'));
    // countryCodeData.add(Province(code: '820000', name: '澳门特别行政区'));
  }
}
